package edu.sctu.practice.class02.shuqiqi.text19;

/**
 * Created by admin on 2015/11/2.
 */
public class Graph1 {
    String color;
    double perimeter;
    double Area;

    public Graph1(String color) {

        this.color = color;

    }

    public double getArea() {

        return Area;
    }

    public double getPerimeter() {
        return perimeter;
    }

    public static void main(String[] args) {
        Graph1 graph;

        graph = new Circle("red");
        graph.getArea();
        graph.getPerimeter();
        System.out.println("*******************************");

        graph = new Oval("Black");
        System.out.println("*******************************");


        graph = new Rectangular("Pink");
        graph.getArea();
        graph.getPerimeter();
        System.out.println("*******************************");

        graph = new Triangle("blue");
        graph.getArea();
        graph.getPerimeter();

        System.out.println("*******************************");


    }
}
